#!/bin/bash



# 创建十个文件
#for i in $(seq 10); do
 #  touch /tmp/file/file${i}.txt
#done

shuliang=$(ls /tmp/file/file* | wc -l) &> /dev/null

for i in $(seq $shuliang); do
   mv  /tmp/file/file${i}.txt  /tmp/file/file${i}$(date +%Y_%m_%d).txt
done
